#include "Logger.h"
#include <LogFileRocorder.h>
#include <LogConsoleRecorder.h>
#include <string>
#include <memory>

int main(int argc, char** argv)
{
	std::string filename = "test.log";
	LOGGER.addLogRecorder(std::make_shared<LogFileRocorder>(filename));
	LOGGER.addLogRecorder(std::make_shared<LogConsoleRecorder>());
	DEBUGLOGGER("测试日志调试");
	INFOLOGGER("测试日志信息");
	WARNLOGGER("测试日志警告");
	ERRORLOGGER("测试日志错误");
	getchar();
	LOGGER.stop();
	return 0;
}